﻿Imports System.Web.UI
Namespace WESNet.DNN.Controls.ImageEditorControl
    Public Class ImageEditorControlDesigner
        Inherits Design.WebControls.CompositeControlDesigner

        Public Overrides Function GetDesignTimeHtml() As String
            Dim c As ImageEditorControl = CType(Component, ImageEditorControl)
            Dim Controls As ControlCollection = c.Controls
            'Return "<div id=""ImageEditorControl1"" style=""border: solid 1px black; width: 400px; height: 400px"">ImageEditorControl</div>"
            'Return MyBase.GetDesignTimeHtml()
            Return "<div id=""" & c.ID & """ style=""width: " & c.Width.Value.ToString & "px; height: " & c.Height.Value.ToString & "px; text-align: center; border: solid 1px black;"">" & c.ID & "</div>"
        End Function
    End Class
End Namespace